package com.xjoyt.pay.gateway.controllers;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.gateway.interfaces.TokenLogContract;
import com.xjoyt.pay.gateway.params.TokenLogParam;
import com.xjoyt.pay.gateway.po.TokenLog;
import com.xjoyt.pay.gateway.services.TokenLogService;

@RestController
@RequestMapping("tokenLog")
public class TokenLogController extends GatewayAbstractController
        implements TokenLogContract {

    @Autowired
    private TokenLogService service;

    @Override
    public PageResult<TokenLog> loadPage(
            @RequestBody PageParam<TokenLogParam> param) {
        return service.loadPage(param);
    }

}
